package com.mall.domain.po;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 分类实体
 * @author 勾新杰
 * @version 1.0
 * @date 2024/11/22 23:00
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Schema(description = "分类实体")
public class Category implements Serializable {
    @Schema(description = "分类id")
    private Long id;
    @Schema(description = "分类名称")
    private String name;
    @Schema(description = "分类状态, 0: 停用, 1: 启用")
    private Integer status;
    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @Schema(description = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
